//
//  Parsing.m
//  CollectionViewDemo
//
//  Created by liuchengming on 16/12/11.
//  Copyright © 2016年 liuchengming. All rights reserved.
//

#import "Parsing.h"
#import "AppDelegate.h"

@implementation Parsing


- (NSString *)ParsingText:(NSString *)tag
{
    NSArray <NSURL *> * text ;
    
    text = [[NSBundle mainBundle] URLsForResourcesWithExtension:@"txt" subdirectory:nil];
    //+ (NSArray<NSString *> *)pathsForResourcesOfType:(nullable NSString *)ext inDirectory:(NSString *)bundlePath;
    //NSLog(@"=======%lu",(unsigned long)text.count);
    
    NSString * str = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:tag ofType:@"txt" ]encoding:NSUTF8StringEncoding error:nil];
    NSLog(@"%@",str);
    
    return str;
}

- (NSString *)ParsingPng:(NSString *)tag
{
    
    return nil;
}

@end
